package al.work.test.message_ext;

import java.util.List;
import al.work.dataserialize.buildserial.build_serialize;
import al.work.dataserialize.buildserial.i_stream_helper;

public class login_ext {

/**
 * 登陆返回
 */
public static class bs_login_ack extends build_serialize.bs_message_t {

    public static class bs_crt_new_helper implements build_serialize.bs_crt_new_helper<bs_login_ack> {
        @Override
        public bs_login_ack new_crt() { return new bs_login_ack();}
        @Override
        public int length() { return 0; }
    }
    private static bs_login_ack.bs_crt_new_helper s_new_helper_ = new bs_login_ack.bs_crt_new_helper();
    public static bs_login_ack.bs_crt_new_helper new_helper() { return s_new_helper_; }

    public bs_login_ack base_value() { return this; }
    /**
     * 登陆返回
    * @return
     */
    public login.bs_account_login login() {
        return login_.base_value();
    }
    /**
     * 登陆返回
    * @return
     */
    public List<login.bs_account_login> login_list() {
        return login_list_.base_value();
    }
    /**
     * 登陆返回
    * @return
     */
    public short u8() {
        return u8_.base_value();
    }
    /**
     * 登陆返回
    * @param _value
     */
    public void u8(short _value) {
        u8_.base_value(_value);
    }

    @Override
    protected int child_length() {
        return login_.length() +
            login_list_.length() +
            u8_.length();
    }

    @Override
    protected boolean child_serialize(i_stream_helper.i_out_stream _helper) {
        return this.login_.serialize(_helper) &&
            this.login_list_.serialize(_helper) &&
            this.u8_.serialize(_helper);
    }

    @Override
    protected boolean child_build(i_stream_helper.i_in_stream _helper) {
        return this.login_.build(_helper) &&
            this.login_list_.build(_helper) &&
            this.u8_.build(_helper);
    }

    /**
     * 登陆返回
     */
    private login.bs_account_login login_ = new login.bs_account_login();
    /**
     * 登陆返回
     */
    private build_serialize.bs_list_ot<login.bs_account_login> login_list_ = new build_serialize.bs_list_ot<login.bs_account_login>(login.bs_account_login.new_helper());
    /**
     * 登陆返回
     */
    private build_serialize.bs_crt_uint8 u8_ = new build_serialize.bs_crt_uint8();
}

} // class login_ext
